<html>
<head> 
	<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="https://cdn.bootcss.com/jquery-mobile/1.4.5/jquery.mobile.min.css">
    <script src="https://cdn.bootcss.com/jquery/1.9.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/jquery-mobile/1.4.5/jquery.mobile.min.js"></script>
    <script src="https://cdn.bootcss.com/require.js/2.3.6/require.min.js"></script>
    <title>热电偶温度计算</title> 

<script>
	var COEF_R = new Array(
		{
			'low': -50.0,
			'high': 1064.18,
			'coefficient': [
			    0,
			    5.28961729765E-3,
			    1.39166589782E-5,
			    -2.38855693017E-8, 
			    3.56916001063E-11,
			    -4.62347666298E-14,
			    5.00777441034E-17,
			    -3.73105886191E-20,
			    1.57716482367E-23,
				-2.81038625251E-27,
			]
		},
		{
			'low': 1064.18,
			'high': 1664.5,
			'coefficient': [
				2.95157925316,
				-2.52061251332E-3,
				1.59564501865E-5,
				-7.64085947576E-9,
				2.05305291024E-12,
				-2.93359668173E-16,
			]
		},
		{
			'low': 1664.5,
			'high': 1768.1,
			'coefficient': [
				1.52232118209E2,
				-2.68819888545E-1,
				1.71280280471E-4,
				-3.45895706453E-8,
				-9.34633971046E-15,
			]
		}
	)

	var RCOEF_R = new Array(
		{
			'low': -226,
			'high': 1923,
			'coefficient': [
			    0,
			    1.8891380E-1,
			    -9.3835290E-5,
			    1.3068619E-7,
			    -2.2703580E-10,
			    3.5145659E-13,
			    -3.8953900E-16,
			    2.8239471E-19,
			    -1.2607281E-22,
			    3.1353611E-26,
			    -3.3187769E-30,
			]
		},
		{
			'low': 1923,
			'high': 11361,
			'coefficient': [
			    1.334584505E1,
			    1.472644573E-1,
			    -1.844024844E-5,
			    4.031129726E-9,
			    -6.249428360E-13,
			    6.468412046E-17,
			    -4.458750426E-21,
			    1.994710149E-25,
			    -5.313401790E-30,
			    6.481976217E-35,
			]
		},
		{
			'low': 11361,
			'high': 19739,
			'coefficient': [
			    -8.199599416E1,
			    1.553962042E-1,
			    -8.342197663E-6,
			    4.279433549E-10,
			    -1.191577910E-14,
			    1.492290091E-19,
			]
		},
		{
			'low': 19739,
			'high': 21103,
			'coefficient': [
			    3.406177836E4,
			    -7.023729171,
			    5.582903813E-4,
			    -1.952394635E-8,
			    2.560740231E-13,
			]
		}
	)

	var COEF_S = new Array(
		{
			'low': -50.0,
			'high': 1064.18,
			'coefficient': [
				0,
			    5.40313308631E-3,
			    1.25934289740E-5,
			    -2.32477968689E-8, 
			    3.22028823036E-11,
			    -3.31465196389E-14,
			    2.55744251786E-17,
			    -1.25068871393E-20,
			    2.71443176145E-24,
			]
		},
		{
			'low': 1064.18,
			'high': 1664.5,
			'coefficient': [
			    1.32900444085E-0,
			    3.34509311344E-3, 
			    6.54805192818E-6, 
			    -1.64856259209E-9, 
			    1.29989605174E-14,
			]
		},
		{
			'low': 1664.5,
			'high': 1768.1,
			'coefficient': [
			    1.46628232636E2, 
			    -2.58430516752E-1, 
			    1.63693574641E-4, 
			    -3.30439046987E-8, 
			    -9.43223690612E-15,
			]
		}
	)

	var RCOEF_S = new Array(
		{
			'low': -235,
			'high': 1874,
			'coefficient': [
			    0,
				1.84949460E-1,
				-8.00504062E-5,
				1.02237430E-7,
				-1.52248592E-10,
				1.88821343E-13,
				-1.59085941E-16,
				8.23027880E-20,
				-2.34181944E-23,
				2.79786260E-27,
			]
		},
		{
			'low': 1874,
			'high': 10332,
			'coefficient': [
			    1.291507177E1,
			    1.466298863E-1,
			    -1.534713402E-5,
			    3.145945973E-9,
			    -4.163257839E-13,
			    3.187963771E-17,
			    -1.291637500E-21,
			    2.183475087E-26,
			    -1.447379511E-31,
			    8.211272125E-36,
			]
		},
		{
			'low': 10332,
			'high': 17536,
			'coefficient': [
			    -8.087801117E1,
			    1.621573104E-1,
			    -8.536869453E-6,
			    4.719686976E-10,
			    -1.441693666E-14,
			    2.081618890E-19,
			]
		},
		{
			'low': 17536,
			'high': 18694,
			'coefficient': [
			    5.333875126E4,
			    -1.235892298E1,
			    1.092657613E-3,
			    -4.265693686E-8,
			    6.247205420E-13,
			]
		}
	)

	var COEF_B = new Array(
		{
			'low': 0,
			'high': 630.615,
			'coefficient': [
				0,
				-2.4650848346E-4,
				5.9040421171E-6,
				-1.3257931636E-9,
				1.5668291901E-12,
				-1.6944529240E-15,
				6.2990347094E-19,
			]
		},
		{
			'low': 630.615,
			'high': 1820,
			'coefficient': [
				-3.8938168621,
				2.8571747470E-2,
				-8.4885104785E-5,
				1.5785280164E-7,
				-1.6835344864E-10,
				1.1109794013E-13,
				-4.4515431033E-17,
				9.8975640821E-21,
				-9.3791330289E-25,
			]
		}
	)

	var RCOEF_B = new Array(
		{
			'low': 291,
			'high': 2431,
			'coefficient': [
			    9.8423321E1,
			    6.9971500E-1,
			    -8.4765304E-4,
			    1.0052644E-6,
			    -8.3345952E-10,
			    4.5508542E-13,
			    -1.5523037E-16,
			    2.9886750E-20,
			    -2.4742860E-24,
			]
		},
		{
			'low': 2431,
			'high': 13820,
			'coefficient': [
			    2.1315071E2,
			    2.8510504E-1,
			    -5.2742887E-5,
			    9.9160804E-9,
			    -1.2965303E-12,
			    1.1195870E-16,
			    -6.0625199E-21,
			    1.8661696E-25,
			    -2.4878585E-30,
			]
		}
	)

	var COEF_J = new Array(
		{
			'low': -210,
			'high': 760,
			'coefficient': [
				0,
				5.0381187815E-2,
				3.0475836930E-5,
				-8.5681065720E-8,
				1.3228195295E-10,
				-1.7052958337E-13,
				2.0948090697E-16,
				-1.2538395336E-19,
				1.5631725697E-23,
			]
		},
		{
			'low': 760,
			'high': 1200,
			'coefficient': [
				2.9645625681E2,
				-1.4976127786,
				3.1787103924E-3,
				-3.1847686701E-6,
				1.5720819004E-9,
				-3.0691369056E-13,
			]
		}
	)

	var RCOEF_J = new Array(
		{
			'low': -8095,
			'high': 0,
			'coefficient': [
			    0,
			    1.9528268E-2,
			    -1.2286185E-6,
			    -1.0752178E-9,
			    -5.9086933E-13,
			    -1.7256713E-16,
			    -2.8131513E-20,
			    -2.3963370E-24,
			    -8.3823321E-29,
			]
		},
		{
			'low': 0,
			'high': 42919,
			'coefficient': [
			    0,
			    1.978425E-2,
			    -2.001204E-7,
			    1.036969E-11,
			    -2.549687E-16,
			    3.585153E-21,
			    -5.344285E-26,
			    5.099890E-31,
			]
		},
		{
			'low': 42919,
			'high': 69553,
			'coefficient': [
			    -3.11358187E3,
			    3.00543684E-1,
			    -9.94773230E-6,
			    1.70276630E-10,
			    -1.43033468E-15,
			    4.73886084E-21,
			]
		}
	)

	var COEF_T = new Array(
		{
			'low': -270,
			'high': 0,
			'coefficient': [
				0,
				3.8748106364E-2,
				4.4194434347E-5,
				1.1844323105E-7,
				2.0032973554E-8,
				9.0138019559E-10,
				2.2651156593E-11,
				3.6071154205E-13,
				3.8493939883E-15,
				2.8213521925E-17,
				1.4251594779E-19,
				4.8768662286E-22,
				1.0795539270E-24,
				1.3945027062E-27,
				7.9795153927E-31,
			]
		},
		{
			'low': 0,
			'high': 400,
			'coefficient': [
				0,
				3.8748106364E-2,
				3.3292227880E-5,
				2.0618243404E-7,
				-2.1882256846E-9,
				1.0996880928E-11,
				-3.0815758772E-14,
				4.5479135290E-17,
				-2.7512901673E-20,
			]
		}
	)

	var RCOEF_T = new Array(
		{
			'low': -5603,
			'high': 0,
			'coefficient': [
			    0,
			    2.5949192E-2,
			    -2.1316967E-7,
			    7.9018692E-10,
			    4.2527777E-13,
			    1.3304473E-16,
			    2.0241446E-20,
			    1.2668171E-24,
			]
		},
		{
			'low': 0,
			'high': 20872,
			'coefficient': [
			    0,
			    2.592800E-2,
			    -7.602961E-7,
			    4.637791E-11,
			    -2.165394E-15,
			    6.048144E-20,
			    -7.293422E-25,
			]
		}
	)

	var COEF_E = new Array(
		{
			'low': -270,
			'high': 0,
			'coefficient': [
				0,
				5.8665508708E-2,
				4.5410977124E-5,
				-7.7998048686E-7,
				-2.5800160843E-8,
				-5.9452583057E-10,
				-9.3214058667E-12,
				-1.0287605534E-13,
				-8.0370123621E-16,
				-4.3979497391E-18,
				-1.6414776355E-20,
				-3.9673619516E-23,
				-5.5827328721E-26,
				-3.4657842013E-29,
			]
		},
		{
			'low': 0,
			'high': 1000,
			'coefficient': [
				0,
				5.8665508710E-2,
				4.5032275582E-5,
				2.8908407212E-8,
				-3.3056896652E-10,
				6.5024403270E-13,
				-1.9197495504E-16,
				-1.2536600497E-18,
				2.1489217569E-21,
				-1.4388041782E-24,
				3.5960899481E-28,
			]
		}
	)

	var RCOEF_E = new Array(
		{
			'low': -8825,
			'high': 0,
			'coefficient': [
			    0,
			    1.6977288E-2,
			    -4.3514970E-7,
			    -1.5859697E-10,
			    -9.2502871E-14,
			    -2.6084314E-17,
			    -4.1360199E-21,
			    -3.4034030E-25,
			    -1.1564890E-29,
			]
		},
		{
			'low': 0,
			'high': 76373,
			'coefficient': [
			    0,
			    1.7057035E-2,
			    -2.3301759E-7,
			    6.5435585E-12,
			    -7.3562749E-17,
			    -1.7896001E-21,
			    8.4036165E-26,
			    -1.3735879E-30,
			    1.0629823E-35,
			    -3.2447087E-41,
			]
		}
	)

	var COEF_K = new Array(
		{
			'low': -270,
			'high': 0,
			'coefficient': [
				0,
				3.9450128025e-2,
				2.3622373598e-5,
				-3.2858906784e-7,
				-4.9904828777e-9,
				-6.7509059173e-11,
				-5.7410327428e-13,
				-3.1088872894e-15,
				-1.0451609365e-17,
				-1.9889266878e-20,
				-1.6322697486e-23,
			]
		},
		{
			'low': 0,
			'high': 1300,
			'coefficient': [
				-1.7600413686e-2,
				3.8921204975e-2,
				1.8558770032e-5,
				-9.9457592874e-8,
				3.1840945719e-10,
				-5.6072844889e-13,
				5.6075059059e-16,
				-3.2020720003e-19,
				9.7151147152e-23,
				-1.2104721275e-26,
			],
			'ex_coefficient': [
				1.185976e-1,
				-1.183432e-4,
			],
		}
	)

	var RCOEF_K = new Array(
		{
			'low': -5891,
			'high': 0,
			'coefficient': [
			    0,
			    2.5173462E-2,
			    -1.1662878E-6,
			    -1.0833638E-9,
			    -8.9773540E-13,
			    -3.7342377E-16,
			    -8.6632643E-20,
			    -1.0450598E-23,
			    -5.1920577E-28,
			]
		},
		{
			'low': 0,
			'high': 20644,
			'coefficient': [
			    0,
			    2.508355E-2,
			    7.860106E-8,
			    -2.503131E-10,
			    8.315270E-14,
			    -1.228034E-17,
			    9.804036E-22,
			    -4.413030E-26,
			    1.057734E-30,
			    -1.052755E-35,
			]
		},
		{
			'low': 20644,
			'high': 52410,
			'coefficient': [
			    -1.318058E2,
			    4.830222E-2,
			    -1.646031E-6,
			    5.464731E-11,
			    -9.650715E-16,
			    8.802193E-21,
			    -3.110810E-26,
			]
		}
	)

	var COEF_N = new Array(
		{
			'low': -270,
			'high': 0,
			'coefficient': [
				0,
				2.6159105962E-2,
				1.0957484228E-5,
				-9.3841111554E-8,
				-4.6412039759E-11,
				-2.6303357716E-12,
				-2.2653438003E-14,
				-7.6089300791E-17,
				-9.3419667835E-20,
			]
		},
		{
			'low': 0,
			'high': 1300,
			'coefficient': [
				0,
				2.5929394601E-2,
				1.5710141880E-5,
				4.3825627237E-8,
				-2.5261169794E-10,
				6.4311819339E-13,
				-1.0063471519E-15,
				9.9745338992E-19,
				-6.0863245607E-22,
				2.0849229339E-25,
				-3.0682196151E-29,
			]
		}
	)

	var RCOEF_N = new Array(
		{
			'low': -3990,
			'high': 0,
			'coefficient': [
			    0,
			    3.8436847E-2,
			    1.1010485E-6,
			    5.2229312E-9,
			    7.2060525E-12,
			    5.8488586E-15,
			    2.7754916E-18,
			    7.7075166E-22,
			    1.1582665E-25,
			    7.3138868E-30,
			]
		},
		{
			'low': 0,
			'high': 20613,
			'coefficient': [
			    0,
			    3.86896E-2,
			    -1.08267E-6,
			    4.70205E-11,
			    -2.12169E-18,
			    -1.17272E-19,
			    5.39280E-24,
			    -7.98156E-29,
			]
		},
		{
			'low': 20613,
			'high': 47513,
			'coefficient': [
			    1.972485E1,
			    3.300943E-2,
			    -3.915159E-7,
			    9.855391E-12,
			    -1.274371E-16,
			    7.767022E-22,
			]
		}
	)

	var COEF_C = new Array(
		{
			'low': 0,
			'high': 630.615,
			'coefficient': [
				0,
				1.3406032e-2,
				1.1924992e-5,
				-7.9806354e-9,
				-5.0787515e-12,
				1.3164197e-14,
				-7.9197332e-18,
			]
		},
		{
			'low': 630.615,
			'high': 2315,
			'coefficient': [
				4.0528823e-1,
				1.1509355e-2,
				1.5696453e-5,
				-1.3704412e-8,
				5.2290873e-12,
				-9.2082758e-16,
				4.5245112e-20,
			]
		}
	)

	var RCOEF_C = new Array(
		{
			'low': 0,
			'high': 37070,
			'coefficient': [
				0,
				7.41247326e-2,
				-4.28082813e-6,
				5.21138920e-10,
				-4.57487201e-14,
				2.80578284e-18,
				-1.13145137e-22,
				2.85489684e-27,
				-4.07643828e-32,
				2.51358071e-37,
            ]
		}
	)

	var COEF_A = new Array(
		{
			'low': 0,
			'high': 2500,
			'coefficient': [
				0,
				1.1951905e-2,
				1.6672625e-5,
				-2.8287807e-8,
				2.8397839e-11,
				-1.8505007e-14,
				7.3632123e-18,
				-1.6148878e-21,
				1.4901679e-25,
			]
		}
	)

	var RCOEF_A = new Array(
		{
			'low': 1337,
			'high': 33485,
			'coefficient': [
				0.9643027e0,
				7.9495086e-2,
				-4.9990310e-6,
				0.6341776e-9,
				-4.7440967e-14,
				2.1811337e-18,
				-5.8324228e-23,
				8.2433725e-28,
				-4.5928480e-33,
			]
		}
	)

	var TYPE_SENSOR = {
		'R': COEF_R, 'r_R': RCOEF_R,
		'S': COEF_S, 'r_S': RCOEF_S,
		'B': COEF_B, 'r_B': RCOEF_B,
		'J': COEF_J, 'r_J': RCOEF_J,
		'T': COEF_T, 'r_T': RCOEF_T,
		'E': COEF_E, 'r_E': RCOEF_E,
		'K': COEF_K, 'r_K': RCOEF_K,
		'N': COEF_N, 'r_N': RCOEF_N,
		'C': COEF_C, 'r_C': RCOEF_C,
		'A': COEF_A, 'r_A': RCOEF_A,
	}


	// 温度计算电动势
	function t2e(sensor, t){
		if (sensor in TYPE_SENSOR)
			var para = TYPE_SENSOR[sensor]
		else
			throw '不认识的传感器类型'

		var min = 0
		var max = 0
		var flag_out_range = true
		var e = 0;

		for (var x in para) 
		{
			// 获取最低温度
			if (para[x]['low'] < min)
			{
				min = para[x]['low']
			}
			// 获取最高温度
			if (para[x]['high'] > max)
			{
				max = para[x]['high']
			}
			// 计算电动势
			if (t >= para[x]['low'] && t <= para[x]['high'])
			{
				for (var c in para[x]['coefficient'])
				{
					e += para[x]['coefficient'][c] * Math.pow(t, c);
				};

				if (sensor == 'K' && t > 0 && t < 1300)
				{
					e += para[x]['ex_coefficient'][0] * Math.exp(para[x]['ex_coefficient'][1] * (t - 126.9686) ** 2)
				}
				flag_out_range = false;
				break;
			}
		}

		if (flag_out_range)
		{
            throw '温度值不在范围内('+ sensor + '型：' + min + '~' + max + '℃)';
		}
		return e
	}

	// 电动势计算温度
	// sensor: 传感器类型
	// e: 电动势，单位mV
	function e2t(sensor, e){
		if ('r_' + sensor in TYPE_SENSOR)
			var para = TYPE_SENSOR['r_' + sensor]
		else
			throw '不认识的传感器类型'

		var min = 0
		var max = 0
		var flag_out_range = true
		var t = 0;
		e = e * 1000  // mV转换成uV，反函数系数用的是uV

		for (var x in para) 
		{
			// 获取最低
			if (para[x]['low'] < min)
			{
				min = para[x]['low']
			}
			// 获取最高
			if (para[x]['high'] > max)
			{
				max = para[x]['high']
			}
			// 计算电动势
			if (e >= para[x]['low'] && e <= para[x]['high'])
			{
				for (var i in para[x]['coefficient'])
				{
					var d = para[x]['coefficient'][i];
					var v = Math.pow(e, i);
					t += d * v;
					// t += para[x]['coefficient'][i] * Math.pow(e, i);
				};

				flag_out_range = false;
				break;
			}
		}

		if (flag_out_range)
		{
            throw '电动势不在范围内('+ sensor + '型：' + (min/1000) + '~' + (max/1000) + 'mV)';
		}
		return t
	}

	// 计算流速
	function calcTemperature(){
		// 获取传感器类型
		var sensor = $('[name="sensor"]:checked').val();
		var emf = document.getElementById('EMF').value;
		var ref = document.getElementById('ref').value;
		var temperature = ''
		var message = ''

		if (emf == '' || ref == '') {
			message = '请输入冷端温度与端子电动势！'
		}
		else {
			try {
				var e_ref = t2e(sensor, ref);
				temperature = e2t(sensor, Number(emf) + Number(e_ref));
				temperature = temperature.toFixed(2);
			}
			catch(err){
				message = err
			}
		}
		document.getElementById('temperature').value = temperature
		document.getElementById('message').innerHTML = message
	}

	// 计算电动势
	function calcEMF(){
		// 获取传感器类型
		var sensor = $('[name="sensor"]:checked').val();
		var temperature = document.getElementById('temperature').value;
		var ref = document.getElementById('ref').value;
		var emf = ''
		var message = ''

		if (temperature == '' || ref == '') {
			message = '请输入温度值！'
		}
		else {
			try {
				e_ref = t2e(sensor, ref);
				e_t = t2e(sensor, temperature);
			    emf = (e_t - e_ref).toFixed(3);
			}
			catch(err){
				message = err
			}
		}

        document.getElementById('EMF').value = emf
		document.getElementById('message').innerHTML = message

	}
</script>
<style>
.ui-input{
  float:left;
  width: 100px; 
}
.ui-div{
    display: inline-block;
    line-height: 26px;
    /*height: 26px;*/
}
.ui-radio{
    display: inline-block;
    line-height: 26px;
    /*height: 26px;*/
}
.ui-lable{
   float:left;
   line-height:36px; 
   width: 100px; 
}
.ui-lable.ui-lable-left{
   line-height:36px;	
}
</style>

</head>
<body>
    <div data-role="page" id="pageone">
		<div data-role="header" data-position="fixed">
			<h1 id="header-device-detail">热电偶温度计算</h1>
			<a href="javascript:document.location='./flow.html'" class="ui-btn ui-btn-right ui-alt-icon ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-back"></a>
		</div>

		<div data-role="main" class="ui-content">
		
		<form action="">
			<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
				<legend><b>热电偶类型</b>：</legend>
				<label for="r">R</label>
				<input type="radio" name="sensor" id="r" onchange="calcEMF()" value="R" checked>
				<label for="s">S</label>
				<input type="radio" name="sensor" id="s" onchange="calcEMF()" value="S">
				<label for="b">B</label>
				<input type="radio" name="sensor" id="b" onchange="calcEMF()" value="B">
				<label for="j">J</label>
				<input type="radio" name="sensor" id="j" onchange="calcEMF()" value="J">
				<label for="t">T</label>
				<input type="radio" name="sensor" id="t" onchange="calcEMF()" value="T">
				<label for="e">E</label>
				<input type="radio" name="sensor" id="e" onchange="calcEMF()" value="E">
				<label for="k">K</label>
				<input type="radio" name="sensor" id="k" onchange="calcEMF()" value="K">
				<label for="n">N</label>
				<input type="radio" name="sensor" id="n" onchange="calcEMF()" value="N">
				<label for="c">C(WRe5-26)</label>
				<input type="radio" name="sensor" id="c" onchange="calcEMF()" value="C">
				<label for="a">A(WRe5-20)</label>
				<input type="radio" name="sensor" id="a" onchange="calcEMF()" value="A">
			</fieldset>
			<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
				<legend><b>温度单位</b>：</legend>
				<label for="celsius">℃</label>
				<input type="radio" name="degree" id="celsius" onchange="calcEMF()" value="celsius" checked>
				<!-- <label for="fahrenheit">℉</label> -->
				<!-- <input type="radio" name="degree" id="fahrenheit" onchange="calcEMF()" value="fahrenheit"> -->
			</fieldset>

<!-- 			<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
				<legend><b>计算方向</b>：</legend>
				<label for="t2e">温度->电动势</label>
				<input type="radio" name="direct" id="t2e" onchange="calcEMF()" value="t2e" checked>
				<label for="e2t">电动势->温度</label>
				<input type="radio" name="direct" id="e2t" onchange="calcTemperature()" value="e2t">
			</fieldset>
 -->
			<li data-role="fieldcontain">
				<div class="ui-grid-a">
					<div class="ui-lable ui-lable-left">
					    <label><b>冷端温度：</b></label>
				    </div>
					<div class="ui-input">
					    <input type="text" name="ref" id="ref" data-mini="true" onchange="calcEMF()" value="0.0">
					</div>
					<div class="ui-lable">
					    <label ></label>
				    </div>
				</div>
				<div class="ui-grid-a">
					<div class="ui-lable ui-lable-left">
					    <label><b>测量温度：</b></label>
				    </div>
					<div class="ui-input">
					    <input type="text" name="temperature" id="temperature" data-mini="true" onchange="calcEMF()">
					</div>
					<div class="ui-lable">
					    <label ></label>
				    </div>
				</div>
				<div class="ui-grid-a">
					<div class="ui-lable ui-lable-left">
					    <label><b>端子电动势：</b></label>
				    </div>
					<div class="ui-input">
					    <input type="text" name="EMF" id="EMF" data-mini="true" onchange="calcTemperature()">
					</div>
					<div class="ui-lable">
					    <label >mV</label>
				    </div>
				</div>
			</li>
		</form>
			<li data-role="fieldcontain">
				<div id="message">
					<p><b>计算方法：</b></p>
					<p>* 改变热电偶类型、冷端温度、测量温度：</p>
					<p>&emsp;&emsp;冷端温度 + 测量温度 -> 端子电动势</p>
					<p>* 改变端子电动势：</p>
					<p>&emsp;&emsp;冷端温度 + 端子电动势 -> 测量温度</p>
				</div>
			</li>
	    </div>
	</div>
</body>
</html>